// 创建 store

import { legacy_createStore as createStore, combineReducers } from 'redux';
// 计数reducer
import { counter } from './reducers/counter';
// todo模块
import { todos } from './reducers/todos';

// 合并各个模块
const rootReducer = combineReducers({ counter, todos });

export const store = createStore(rootReducer);
